package org.hawk.gwtppc.webtest.tests.fieldsuite;

import org.hawk.gwtppc.webtest.common.Asserts;
import org.hawk.gwtppc.webtest.common.Test;
import org.hawk.gwtppc.webtest.tests.mock.EnumMock;
import org.hawk.gwtppc.webtest.tests.mock.SubClassMock1;

public class GetNameTest implements Test {

	public void run() throws Throwable {
		Asserts.assertEquals(SubClassMock1.class.getDeclaredField("serialVersionUID").getName(), "serialVersionUID");
		Asserts.assertEquals(SubClassMock1.class.getDeclaredField("staticString").getName(), "staticString");
		Asserts.assertEquals(SubClassMock1.class.getDeclaredField("parent").getName(), "parent");
		Asserts.assertEquals(SubClassMock1.class.getDeclaredField("flag").getName(), "flag");
		Asserts.assertEquals(EnumMock.class.getField("ALPHA").getName(), "ALPHA");
	}

	public String getName() {
		return "getName()";
	}

}
